import request from '@/utils/request'

// 查询DXC配方信息列表
export function listFm(query) {
  return request({
    url: '/safety/fm/list',
    method: 'get',
    params: query
  })
}

// 查询DXC配方信息详细
export function getFm(id) {
  return request({
    url: '/safety/fm/' + id,
    method: 'get'
  })
}

// 新增DXC配方信息
export function addFm(data) {
  return request({
    url: '/safety/fm',
    method: 'post',
    data: data
  })
}

// 修改DXC配方信息
export function updateFm(data) {
  return request({
    url: '/safety/fm',
    method: 'put',
    data: data
  })
}

// 删除DXC配方信息
export function delFm(id) {
  return request({
    url: '/safety/fm/' + id,
    method: 'delete'
  })
}
